#include "DoubleSpinBoxItem.h"

DoubleSpinBoxItem::DoubleSpinBoxItem(QTreeWidgetItem *item, int column)
{
    this->item = item;
    this->column = column;
    connect(this, SIGNAL(editingFinished()), SLOT(changeItem()));
}

void DoubleSpinBoxItem::changeItem()
{
	item->setData(this->column, Qt::UserRole, QString::number(this->value()));
        //qDebug() item->data(this->column, Qt::UserRole).toString();
}